home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ffffccccnnnnttttllll((((5555)))) ffffccccnnnnttttllll((((5555))))
-
-
-
- NNNNAAAAMMMMEEEE
- fcntl - file control options
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ffffccccnnnnttttllll....hhhh>>>>
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _f_c_n_t_l._h header defines the following requests and arguments for use
- by the functions _f_c_n_t_l (see _f_c_n_t_l(2)) and _o_p_e_n (see _o_p_e_n(2)).
-
- Values for _c_m_d used by _f_c_n_t_l (the following values are unique):
- FFFF____DDDDUUUUPPPPFFFFDDDD Duplicate file descriptor
- FFFF____GGGGEEEETTTTFFFFDDDD Get file descriptor flags
- FFFF____SSSSEEEETTTTFFFFDDDD Set file descriptor flags
- FFFF____GGGGEEEETTTTFFFFLLLL Get file status flags
- FFFF____SSSSEEEETTTTFFFFLLLL Set file status flags
- FFFF____GGGGEEEETTTTLLLLKKKK Get record locking information
- FFFF____SSSSEEEETTTTLLLLKKKK Set record locking information
- FFFF____SSSSEEEETTTTLLLLKKKKWWWW Set record locking information;
- wait if blocked
- FFFF____AAAALLLLLLLLOOOOCCCCSSSSPPPP Allocate file space
- FFFF____AAAALLLLLLLLOOOOCCCCSSSSPPPP Allocate 64-bit file space
- FFFF____FFFFRRRREEEEEEEESSSSPPPP Free file space
- FFFF____FFFFRRRREEEEEEEESSSSPPPP Free 64-bit file space
- FFFF____SSSSEEEETTTTBBBBSSSSDDDDLLLLKKKK Set BSD record locking information
- FFFF____SSSSEEEETTTTBBBBSSSSDDDDLLLLKKKKWWWW Set BSD record locking information;
- wait if blocked
- FFFF____DDDDIIIIOOOOIIIINNNNFFFFOOOO Get direct I/O parameters
- FFFF____RRRRSSSSEEEETTTTLLLLKKKK Remote SETLK for NFS
- FFFF____RRRRGGGGEEEETTTTLLLLKKKK Remote GETLK for NFS
- FFFF____RRRRSSSSEEEETTTTLLLLKKKKWWWW Remote SETLKW for NFS
- FFFF____GGGGEEEETTTTOOOOWWWWNNNN Get owner (socket emulation)
- FFFF____SSSSEEEETTTTOOOOWWWWNNNN Set owner (socket emulation)
- FFFF____SSSSEEEETTTTTTTTRRRRAAAANNNNSSSSFFFFEEEERRRR Set transfer context for data pipe
- FFFF____DDDDEEEESSSSTTTTRRRROOOOYYYYTTTTRRRRAAAANNNNSSSSFFFFEEEERRRR Destroy transfer context for data pipe
- FFFF____AAAALLLLLLLLOOOOCCCCSSSSPPPP66664444 Allocate file space
- FFFF____FFFFRRRREEEEEEEESSSSPPPP66664444 Free file space
- FFFF____GGGGEEEETTTTLLLLKKKK66664444 Get record locking information
- FFFF____SSSSEEEETTTTLLLLKKKK66664444 Set record locking information
- FFFF____SSSSEEEETTTTLLLLKKKKWWWW66664444 Set record locking information;
- wait if blocked
- FFFF____RRRREEEESSSSVVVVSSSSPPPP Reserve file space
- FFFF____UUUUNNNNRRRREEEESSSSVVVVSSSSPPPP Unreserve file space
- FFFF____RRRREEEESSSSVVVVSSSSPPPP66664444 Reserve file space
- FFFF____UUUUNNNNRRRREEEESSSSVVVVSSSSPPPP66664444 Unreserve file space
- FFFF____FFFFSSSSGGGGEEEETTTTXXXXAAAATTTTTTTTRRRRAAAA Get extended attributes
- FFFF____FFFFSSSSYYYYNNNNCCCC Flush a file range
- FFFF____FFFFSSSSYYYYNNNNCCCC66664444 Flush a 64-bit file range
- FFFF____GGGGEEEETTTTBBBBIIIIOOOOSSSSIIIIZZZZEEEE Get the preferred buffer I/O sizes
- FFFF____SSSSEEEETTTTBBBBIIIIOOOOSSSSIIIIZZZZEEEE Set the preferred buffer I/O sizes
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ffffccccnnnnttttllll((((5555)))) ffffccccnnnnttttllll((((5555))))
-
-
-
- File descriptor flags used for _f_c_n_t_l:
- FFFFDDDD____CCCCLLLLOOOOEEEEXXXXEEEECCCC Close the file descriptor upon
- execution of an exec function [see _e_x_e_c(2)]
-
- File status flags used for _o_p_e_n and _f_c_n_t_l:
- OOOO____NNNNDDDDEEEELLLLAAAAYYYY Non-blocking I/O
- OOOO____AAAAPPPPPPPPEEEENNNNDDDD Append
- OOOO____SSSSYYYYNNNNCCCC Synchronous write option
- OOOO____DDDDSSSSYYYYNNNNCCCC Synchronous write option for data
- OOOO____RRRRSSSSYYYYNNNNCCCC Synchronous data integrity read
- FFFFAAAASSSSYYYYNNNNCCCC Interrupt-driven I/O for sockets
- OOOO____NNNNOOOONNNNBBBBLLLLOOOOCCCCKKKK Non-blocking I/O
- OOOO____LLLLCCCCFFFFLLLLUUUUSSSSHHHH Flush cache on last close
- OOOO____LLLLCCCCIIIINNNNVVVVAAAALLLL Flush and invalidate cache on last close
-
- Values for _l__t_y_p_e used for record locking with _f_c_n_t_l
- (the following values are unique):
- FFFF____RRRRDDDDLLLLCCCCKKKK Shared or read lock
- FFFF____UUUUNNNNLLLLCCCCKKKK Unlock
- FFFF____WWWWRRRRLLLLCCCCKKKK Exclusive or write lock
-
- Values for _o_f_l_a_g used by _o_p_e_n:
- OOOO____CCCCRRRREEEEAAAATTTT Create file if it does not exist
- OOOO____EEEEXXXXCCCCLLLL Exclusive use flag
- OOOO____NNNNOOOOCCCCTTTTTTTTYYYY Do not assign controlling tty
- OOOO____TTTTRRRRUUUUNNNNCCCC Truncate flag
- OOOO____DDDDIIIIRRRREEEECCCCTTTT Direct I/O
- OOOO____LLLLAAAARRRRGGGGEEEEFFFFIIIILLLLEEEE Allow large file opens
-
- Mask for use with file access modes:
- OOOO____AAAACCCCCCCCMMMMOOOODDDDEEEE Mask for file access modes
-
- File access modes used for _o_p_e_n and _f_c_n_t_l:
- OOOO____RRRRDDDDOOOONNNNLLLLYYYY Open for reading only
- OOOO____RRRRDDDDWWWWRRRR Open for reading and writing
- OOOO____WWWWRRRROOOONNNNLLLLYYYY Open for writing only
-
- The constants used for file modes are defined to have the same values as
- in _ssss_yyyy_ssss_////_ssss_tttt_aaaa_tttt_...._hhhh. These constants exist in _ffff_cccc_nnnn_tttt_llll_...._hhhh also in order to comply
- with the XPG4 standards.
-
- ####ddddeeeeffffiiiinnnneeee SSSS____IIIISSSSUUUUIIIIDDDD /* set user id on execution */
- ####ddddeeeeffffiiiinnnneeee SSSS____IIIISSSSGGGGIIIIDDDD /* set group id on execution */
- ####ddddeeeeffffiiiinnnneeee SSSS____IIIIRRRRWWWWXXXXUUUU /* read, write, execute: owner */
- ####ddddeeeeffffiiiinnnneeee SSSS____IIIIRRRRUUUUSSSSRRRR /* read permission: owner */
- ####ddddeeeeffffiiiinnnneeee SSSS____IIIIWWWWUUUUSSSSRRRR /* write permission: owner */
- ####ddddeeeeffffiiiinnnneeee SSSS____IIIIXXXXUUUUSSSSRRRR /* execute permission: owner */
- ####ddddeeeeffffiiiinnnneeee SSSS____IIIIRRRRWWWWXXXXGGGG /* read, write, execute: group */
- ####ddddeeeeffffiiiinnnneeee SSSS____IIIIRRRRGGGGRRRRPPPP /* read permission: group */
- ####ddddeeeeffffiiiinnnneeee SSSS____IIIIWWWWGGGGRRRRPPPP /* write permission: group */
- ####ddddeeeeffffiiiinnnneeee SSSS____IIIIXXXXGGGGRRRRPPPP /* execute permission: group */
- ####ddddeeeeffffiiiinnnneeee SSSS____IIIIRRRRWWWWXXXXOOOO /* read, write, execute: other */
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- ffffccccnnnnttttllll((((5555)))) ffffccccnnnnttttllll((((5555))))
-
-
-
- ####ddddeeeeffffiiiinnnneeee SSSS____IIIIRRRROOOOTTTTHHHH /* read permission: other */
- ####ddddeeeeffffiiiinnnneeee SSSS____IIIIWWWWOOOOTTTTHHHH /* write permission: other */
- ####ddddeeeeffffiiiinnnneeee SSSS____IIIIXXXXOOOOTTTTHHHH /* execute permission: other */
-
-
- The constants used for the _llll_ssss_eeee_eeee_kkkk routine are defined to have the same
- values as in _uuuu_nnnn_iiii_ssss_tttt_dddd_...._hhhh. These constants exist in _ffff_cccc_nnnn_tttt_llll_...._hhhh also in order to
- comply with the XPG4 standards.
-
- ####ddddeeeeffffiiiinnnneeee SSSSEEEEEEEEKKKK____SSSSEEEETTTT /* Set file pointer to "offset" */
- ####ddddeeeeffffiiiinnnneeee SSSSEEEEEEEEKKKK____CCCCUUUURRRR /* Set file pointer to current plus"offset" */
- ####ddddeeeeffffiiiinnnneeee SSSSEEEEEEEEKKKK____EEEENNNNDDDD /* Set file pointer to EOF plus"offset" */
-
-
- The structure _f_l_o_c_k describes a file lock. It includes the following
- members:
-
- short l_type; /* Type of lock */
- short l_whence; /* Flag for starting offset */
- off_t l_start; /* Relative offset in bytes */
- off_t l_len; /* Size; if 0 then until EOF */
- long l_sysid; /* Returned with F_GETLK */
- pid_t l_pid; /* Returned with F_GETLK */
-
-
- The structure _f_l_o_c_k_6_4 describes a file lock for use on large files. It
- includes the following members:
-
- short l_type; /* Type of lock */
- short l_whence; /* Flag for starting offset */
- off64_t l_start; /* Relative offset in bytes */
- off64_t l_len; /* Size; if 0 then until EOF */
- long l_sysid; /* Returned with F_GETLK */
- pid_t l_pid; /* Returned with F_GETLK */
-
-
- The structure _b_i_o_s_i_z_e is used to pass information about the preferred I/O
- sizes used for a file. It contains the following members:
-
- __uint32_t biosz_flags; /* 1 if defaults are overridden */
- __int32_t biosz_read; /* all values specified as log */
- __int32_t biosz_write; /* base2 of the true length */
- __int32_t dfl_biosz_read; /* Returned with F_GETBIOSIZE */
- __int32_t dfl_biosz_write; /* Returned with F_GETBIOSIZE */
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- creat(2), exec(2), fcntl(2), open(2)
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-